package com.lagou.code.service;

/**
 * created by kirito at 2020/7/12
 */
public interface IAuthCodeService {

    boolean createCode(String email);

    /**
     * 校验验证码是否正确，
     *
     * @param email 邮箱
     * @param code  验证码
     * @return 0正确/1错误/2超时
     */
    int validateCode(String email, String code);
}
